/**
 * util.promisify方法;
 * 
 */

const util = require('util');
const fs = require('fs');
const readFile = util.promisify(fs.readFile);
readFile('./resource/content.txt').then(
    value=>{
     console.log(value.toString())
 
}
)